package org.brisling.supervision.domain;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.brisling.base.domain.impl.BaseDomain;
import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.common.ConstSysParam;
import org.brisling.supervision.domain.inf.SupervisionProjectTree;

/**
 * 
 * <p>Title: SupProject 督查项目实体类</p>
 * <p>Description: </p>
 * <p>Company: 长沙东勤信息科技发展有限公司</p>
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2018年7月30日 上午10:53:01
 */

@Entity


//定义模块代码及数据表名称
@Table(name=ConstSysParam.MODULE_SUPERVISION_PROJECT)
public class SupProject extends BaseDomain implements BaseDomainInf, SupervisionProjectTree{
	
		
		//父类别id
		private Long parentid;
		
		//父类别名称
		private String parnetName;
		
		//节点类型
		@Transient
		private String type = "p";

		/* (non-Javadoc)
		 * @see org.brisling.supervision.domain.SupervisionProjectTree#getParentid()
		 */
		public Long getParentid() {
			return parentid;
		}

		/* (non-Javadoc)
		 * @see org.brisling.supervision.domain.SupervisionProjectTree#setParentid(java.lang.Long)
		 */
		public void setParentid(Long parentid) {
			this.parentid = parentid;
		}

		/* (non-Javadoc)
		 * @see org.brisling.supervision.domain.SupervisionProjectTree#getParnetName()
		 */
		public String getParnetName() {
			return parnetName;
		}

		/* (non-Javadoc)
		 * @see org.brisling.supervision.domain.SupervisionProjectTree#setParnetName(java.lang.String)
		 */
		public void setParnetName(String parnetName) {
			this.parnetName = parnetName;
		}

		/* (non-Javadoc)
		 * @see org.brisling.supervision.domain.SupervisionProjectTree#getType()
		 */
		public String getType() {
			return type;
		}			
		
}
